
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildSupplyCfg : public ManualSingleton <GuildSupplyCfg>
{
	friend ManualSingleton <GuildSupplyCfg>;
public:
	GuildSupplyCfg();
	~GuildSupplyCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildSupplyCfgInfo *GetGuildSupplyCfgInfo(int32_t supplyId);
	const GuildSupplyCfgMap *GetGuildSupplyCfgMap() { return &m_GuildSupplyCfgMap; }
private:
	GuildSupplyCfgMap m_GuildSupplyCfgMap;
};

#define  g_MakeGuildSupplyCfgTable() (GuildSupplyCfg::Instance())
#define  g_GetGuildSupplyCfgTable() (GuildSupplyCfg::GetInstance())
#define  g_DelGuildSupplyCfgTable() (GuildSupplyCfg::Destroy())